package com.electron.power.model.mod;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="数据头")
public class ModHead {
	/**
	 * 头部长度固定4为
	 */
	public static final Integer HEAD_LENGTH = 4;
	
	@ApiModelProperty(value="帧头,无符号byte长度1",example="85")
	private int frameHead;
	
	@ApiModelProperty(value="功能码,无符号byte长度1",example="03")
	private int functionCode;
	
	@ApiModelProperty(value="数据长度,无符号byte长度2",example="102")
	private int dataLenth;
	
}
